package spring.cloud.service.task.mapper;

import org.springframework.stereotype.Repository;
import spring.cloud.service.task.dto.ZooKeeperDto;

import java.util.HashMap;
import java.util.List;

@Repository
public interface ZooKeeperDtoMapper {


    int insert(ZooKeeperDto zooKeeperDto);

    int updateByZooKeeperKey(ZooKeeperDto zooKeeperDto);

    int deleteByZooKeeperKey(String zooKeeperKey);

    ZooKeeperDto selectByZooKeeperKey(String zooKeeperKey);

    //
    int selectAllCount(String description, String status);

    List<ZooKeeperDto> selectAll(String description, String status, Integer pageOffset, Integer pageSize);

    List<HashMap<String, String>> getZooKeeperKeyAndDescriptionList();

    List<ZooKeeperDto> getZooKeeperDtoList(HashMap map);

}
